#include "udp_client.hpp"

int main(int argc, char* argv[])
{
    // ./udp_client serve_ip serve_port
    if(argc != 3){
        std::cerr << "Usge:" << argv[0] << "serve_ip serve_port" << std::endl;
        return 1;
    }
    std::string ip = argv[1];
    int port = atoi(argv[2]);
    UdpClient* uc = new UdpClient(ip, port);
    uc->InitUdpClient();
    uc->Start();
    return 0;
}
